package com.atguigu.guli.service.edu.feign.fallback;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.base.result.ResultCodeEnum;
import com.atguigu.guli.service.edu.feign.OssFiegnClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class OssFeignClientFallback implements OssFiegnClient {
    @Override
    public R test(R r) {
        log.warn("远程访问: {} 失败" , "test");
        return R.error();
    }

    @Override
    public R delete(String path, String module) {
        log.warn("远程访问: {} 失败 , path:{} , module:{}" , "删除文件" , path , module);
        return R.error();
    }
}
